package org.jeecg.modules.oa.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 审批节点
 * @Author: jeecg-boot
 * @Date:   2019-12-04
 * @Version: V1.0
 */
@Data
@TableName("pd_node")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="pd_node对象", description="审批节点")
public class ApprovalNode {
    
	/**流程定义节点表ID*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "流程定义节点表ID")
	private String id;
	/**流程主表ID*/
	@Excel(name = "流程主表ID", width = 15)
    @ApiModelProperty(value = "流程主表ID")
	private String mainId;
	/**节点名称 */
	@Excel(name = "节点名称 ", width = 15)
    @ApiModelProperty(value = "节点名称 ")
	private String name;
	/**被分配部门ID*/
	@Excel(name = "被分配部门ID", width = 15)
    @ApiModelProperty(value = "被分配部门ID")
	@Dict(dictTable ="sys_depart" ,dicText ="depart_name" ,dicCode = "id")
	private String officeId;
	/**推送部门岗位id*/
	@Excel(name = "推送部门岗位id", width = 15)
    @ApiModelProperty(value = "推送部门岗位id")
	private String positionGroup;
	/**表单ID（备用表单）*/
	@Excel(name = "表单ID（备用表单）", width = 15)
    @ApiModelProperty(value = "表单ID（备用表单）")
	private String childFormId;
	/**节点排序的顺序*/
	@Excel(name = "节点排序的顺序", width = 15)
    @ApiModelProperty(value = "节点排序的顺序")
	private Integer sortNo;
	@TableField(exist = false)
	private String departId;
	/**创建者*/
	@Excel(name = "创建者", width = 15)
    @ApiModelProperty(value = "创建者")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新者*/
	@Excel(name = "更新者", width = 15)
    @ApiModelProperty(value = "更新者")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
	/**备注信息*/
	@Excel(name = "备注信息", width = 15)
    @ApiModelProperty(value = "备注信息")
	private String remarks;
	/**删除标记*/
	@Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
	private String delFlag;
	/**type*/
	@Excel(name = "type", width = 15)
    @ApiModelProperty(value = "type")
	private String buttonType;
	private  String positionName;
	@TableField(exist = false)
	private List<String> receiveAttr;
	@TableField(exist = false)
	private List<String> nodeButtonList;
	@TableField(exist = false)
	private List<String> nodeIdList;
	@TableField(exist = false)
	private String nodeSort;
	@TableField(exist = false)
	private String conditionFlg;
	@TableField(exist = false)
	private List<ButtonCondition> buttonConditionList;
	@TableField(exist = false)
    private List<NodeButton> nodeButtonLists;
	@TableField(exist = false)
    private String selectButtonId;
	@TableField(exist = false)
	private String text;
	@TableField(exist = false)
	private String value;
}
